package com.he.DesignPatterns.strategy.demo1;

import lombok.Data;

@Data
public class CashDiscount extends CashSuper {

    private double dis = 0.8;

    public CashDiscount(double dis){
        this.dis = dis;
    }
    @Override
    double acceptCash(double money) {
        return money * dis;
    }
}
